#include "Cube.h"

void Cube::setL(int l)
{
	m_L = l;
}

int Cube::getL()
{
	return m_L;
}

void Cube::setW(int w)
{
	m_W = w;
}

int Cube::getW()
{
	return m_W;
}

void Cube::setH(int h)
{
	m_H = h;
}

int Cube::getH()
{
	return m_H;
}

int Cube::calculateS()
{
	return 2 * m_L * m_H + 2 * m_W * m_H + 2 * m_L * m_W;
}

int Cube::calculateH()
{
	return m_L + m_H + m_W;
}

bool Cube::isSame(Cube& c)
{
	if (getL() == c.getL())
		return true;
	return false;
}

bool Cube::isSame(Cube* c)
{
	if (getL() == c->getL())
		return true;
	return false;
}

int m_L;
int m_W;
int m_H;